package com.byzk.p2p.admin.money.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.byzk.p2p.admin.money.dto.FundRecord;
import com.byzk.p2p.admin.money.vo.FundRecordUserExportVo;
import com.byzk.p2p.admin.money.vo.FundRecordUserVo;
import com.byzk.p2p.admin.money.vo.SumMoneyVo;

/**
 * 资金流水dao		suker.zhou
 * @author suker.zhou
 *
 */
public interface FundRecordDao {
	
	public Integer deleteByPrimaryKey(Integer id);

	public Integer insert(FundRecord record);

	public FundRecordUserVo selectByPrimaryKey(Integer id);

	public Integer update(FundRecord record);
	
	public Integer batchInsert(List<FundRecord> record);
	
	public Integer count(FundRecordUserVo vo);
	
	public List<FundRecordUserVo> list(FundRecordUserVo vo);

	public SumMoneyVo sumFundRecord(FundRecordUserVo vo); 
	
	public FundRecordUserVo getFundRecord(FundRecordUserVo vo);

	public List<FundRecordUserVo> listByExportVo(FundRecordUserExportVo vo);
	
	public FundRecord getFundRecordByUserId(Integer id);

	public List<FundRecord> listByTypeAndAmount(@Param("type")Integer type, @Param("amount")double amount,@Param("uid")Integer uid);
	
	public Double sumInviteReward(Integer userId);
	
	public FundRecord getFundRecordByObjectId(Integer ObjId);
	
}